package com.rightsidetech.system.mapper;

import com.rightsidetech.system.dtos.request.AppUpdateReq;
import com.rightsidetech.system.dtos.response.SysAppVersionResp;
import com.rightsidetech.system.entity.SysAppVersion;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysAppVersionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SysAppVersion record);

    int insertSelective(SysAppVersion record);

    SysAppVersion selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysAppVersion record);

    int updateByPrimaryKey(SysAppVersion record);

    List<SysAppVersionResp> page();

    SysAppVersion versionDate(@Param("appOs") Byte appOs, @Param("appType") Byte appType, @Param("bugType") Byte bugType);

    SysAppVersion versionMaxDate(@Param("appOs") Byte appOs, @Param("appType") Byte appType);

    SysAppVersion checkAppVersion(AppUpdateReq updateReq);

}